You are here: Trading System Programming > Reference > Classes > Account > Account Methods > getBalances

getBalances

The getBalances method returns a Balances object instance.

Syntax

var getBalances();

Return Value

This method returns a Balances object instance filled with information about account's balances.

Example

The following example demonstrates the use of getBalances() method.

 

function start()

{

//retrieve account's balances

var account = getAccount();

var balances = account.getBalances();

 

//if buying power falls bellow $100, do not perform any calculations

if(balances.getBuyinPower() < 100.00)

return;

 

//proceed with calculations...

}

See Also

start(), getAccount(), Balances class

 


Copyright © 2006-2009 ActiveTick LLC